package com.chen.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.chen.domain.SysMenu;
import com.chen.domain.SysPrivilege;
import org.apache.ibatis.annotations.Param;

import java.util.Set;

public interface SysPrivilegeMapper extends BaseMapper<SysPrivilege> {
    Set<Long> getPrivilegesByRoleId(@Param("roleId") Long roleId);

    SysMenu selectMenuById(@Param("privilegeId") String privilegeId);
}